coreVersion: v1
kind: ItemTemplate
metadata:
  name: default
  pluralName: default
  core: true
spec:
  attributes:
    id:
      type: string
      columnName: id # the key attribute name and its column name must be 'id'!
      displayName: ID
      description: ID
      keyed: true
      required: true
      readOnly: true
      length: 36
      colHidden: true
      colWidth: 290
    configId:
      type: string
      columnName: config_id
      displayName: Config ID
      description: Config ID
      required: true
      unique: true
      readOnly: true
      length: 36
      colHidden: true
      colWidth: 290
    generation:
      type: int
      columnName: generation
      displayName: Generation
      description: Generation
      required: true
      defaultValue: 1
      private: true
      minRange: 1
    majorRev:
      type: string
      columnName: major_rev
      displayName: Major Rev
      description: Major Revision
      defaultValue: A
      length: 50
      colHidden: true
      colWidth: 160
      fieldWidth: 3
    minorRev:
      type: string
      columnName: minor_rev
      displayName: Minor Rev
      description: Minor Revision
      length: 50
      colHidden: true
      colWidth: 160
      fieldWidth: 3
    current:
      type: bool
      columnName: is_current
      displayName: Current
      description: Current
      required: true
      defaultValue: 1
      readOnly: true
      colHidden: true
    locale:
      type: string
      columnName: locale
      displayName: Locale
      description: Locale
      length: 50
      colHidden: true
    lifecycle:
      type: relation
      relType: manyToOne
      target: lifecycle
      columnName: lifecycle_id
      displayName: Lifecycle
      description: Lifecycle
      colHidden: true
    state:
      type: string
      columnName: state
      displayName: Lifecycle State
      description: Lifecycle State
      length: 50
      colHidden: true
    permission:
      type: relation
      relType: manyToOne
      target: permission
      columnName: permission_id
      displayName: Permission
      description: Permission
      indexed: true
      colHidden: true
    createdAt:
      type: datetime
      columnName: created_at
      displayName: Created At
      description: Created At
      required: true
      readOnly: true
      colHidden: true
    createdBy:
      type: relation
      relType: manyToOne
      target: user
      columnName: created_by_id
      displayName: Created By
      description: Created By
      required: true
      readOnly: true
      colHidden: true
    updatedAt:
      type: datetime
      columnName: updated_at
      displayName: Updated At
      description: Updated At
      readOnly: true
      colHidden: true
    updatedBy:
      type: relation
      relType: manyToOne
      target: user
      columnName: updated_by_id
      displayName: Updated By
      description: Updated By
      readOnly: true
      colHidden: true
    lockedBy:
      type: relation
      relType: manyToOne
      target: user
      columnName: locked_by_id
      displayName: Locked By
      description: Locked By
      readOnly: true
      colHidden: true
      colWidth: 160
